<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <script src="js/jquery.min.js"></script>
        <script>

            $(function(){

                // $('<div>replace</div>').replaceAll('a')
                $('a').replaceWith('<div>replace2</div>')
            })

        </script>
    </head>
    <body>


            <a href="#">天猫</a>
            <a href="#">淘宝</a>
            <a href="#">拼多多</a>
            <a href="#">京东</a>


    </body>
</html>
